var mysql = require('mysql');
var connection = mysql.createConnection({
	'host': '119.29.7.247',
	'user': 'root',
	'password': 'mingyiyi',
	'port': '3306',
	'database':'ins'
});

connection.connect();

var sql = 'SELECT * FROM birthday';
connection.query(sql,function(err, result){
	if(err){
		console.log('[SELECT ERROR] - ', err.message);
		return;
	}
	console.log('----------------select---------------');
	console.log(result);
});

connection.end();
